package com.igelato.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @TableName: order_recharge
 * @Description: 充值订单
 * @Author: wht
 * @Date: 2024-01-27
 */
@Data
    @Accessors(chain = true)
@TableName(value = "order_recharge")
public class OrderRecharge implements Serializable{
                @TableId(value = "id", type = IdType.AUTO)
                private Integer id;
        @ApiModelProperty("订单号，对应微信的out_trade_no")
        private String trade_id;
        @ApiModelProperty("微信支付系统生成的订单号")
        private String transaction_id;
        @ApiModelProperty("1：微信支付；2：支付宝支付；")
        private Byte pay_type;
        private Integer user_id;
        @ApiModelProperty("支付金额，单位：分")
        private Integer pay_money;
        @ApiModelProperty("支付信息")
        private String pay_info;
        @ApiModelProperty("退款信息")
        private String refund_info;
        @ApiModelProperty("1: 未支付； 2： 已支付；-8：申请退款；-9：已退款； -10：拒绝退款；")
        private Byte status;
        private LocalDateTime pay_success_time;
        @ApiModelProperty("申请退款时间")
        private LocalDateTime apply_refund_time;
        @ApiModelProperty("退款成功时间")
        private LocalDateTime refund_success_time;
        private LocalDateTime create_time;
        private LocalDateTime update_time;
@TableField(exist = false)
private static final long serialVersionUID=1L;

        }
